/**
 * @file Application.cc
 * @author Bono.ASUN.TamGitsun (gitsun.tam@outlook.com)
 * @brief 
 * @version 0.1
 * @date 2022-02-07
 * 
 * @copyright Copyright (c) 2022
 * 
 */


#include "Application.hh"


namespace ECT::APPS {


void Application::set_property(const std::string & key, const std::string & value)
{
    mProperties.insert(std::make_pair(key, value));
}

const std::string & Application::get_property(const std::string & key, const std::string & default_value)
{
    auto it = mProperties.find(key);
    if (it == mProperties.end())
    {
        return default_value;
    }
    return it->second;
}


}
